package com.kxf.rpc;

import com.kxf.rpc.client.JdkClient;

/**
 * @author Kxf
 * @create 2021/9/23,0023 15:20
 */
public class Main {

    public static void main(String[] args) {
        //Json序列化
        //Hello hello = new RpcClientProxy().getProxy(Hello.class);
        //hello.hello2(6);

        //Kryo序列化
        //Hello hello = new RpcClientProxy(new JdkClient(1)).getProxy(Hello.class);
        //hello.hello2(6);

        //Protostuff序列化
        Hello hello = new RpcClientProxy(new JdkClient(2)).getProxy(Hello.class);
        hello.hello2(6);
    }
}
